﻿@model DAMS.Models.Category
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>分类详情</title>
    <link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
</head>
<body>

<div class="container-fluid">

    <table class="table table-hover table-sm table-bordered m-2 initialism">
        <caption>分类详情</caption>
        <thead class="thead-light">
            <tr>
                <th class="w-25">属性</th>
                <th>值</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>@Html.DisplayNameFor(model => model.ID)</th>
                <td>@Html.DisplayFor(model => model.ID)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.ParentID)</th>
                <td>@Html.DisplayFor(model => model.ParentID)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.Type)</th>
                <td>@Html.DisplayFor(model => model.Type)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.Name)</th>
                <td>@Html.DisplayFor(model => model.Name)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.Layer)</th>
                <td>@Html.DisplayFor(model => model.Layer)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.ShowType)</th>
                <td>
                    @foreach (var item in Html.GetEnumSelectList<DAMS.Models.CategoryShowType>(Model.ShowType))
                    {

                        <span class="mr-3">@item.Text</span>

                    }
                </td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.Template)</th>
                <td>@Html.DisplayFor(model => model.Template)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.ArticleTemplate)</th>
                <td>@Html.DisplayFor(model => model.ArticleTemplate)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.HtmlDescription)</th>
                <td>@Html.DisplayFor(model => model.HtmlDescription)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.HtmlKeyWord)</th>
                <td>@Html.DisplayFor(model => model.HtmlKeyWord)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.Content)</th>
                <td>@Html.DisplayFor(model => model.Content)</td>
            </tr>
            <tr>
                <th>@Html.DisplayNameFor(model => model.CreateTime)</th>
                <td>@Html.DisplayFor(model => model.CreateTime)</td>
            </tr>
        </tbody>
    </table>
   
</div>

</body>
</html>
